<datasource-http-settings current="ctrl.current" suggest-url="http://localhost:8086">
</datasource-http-settings>

<h3 class="page-heading">InfluxDB Details</h3>

<div class="gf-form-group">
	<div class="gf-form-inline">
		<div class="gf-form max-width-30">
			<span class="gf-form-label width-7">数据库</span>
			<input type="text" class="gf-form-input" ng-model='ctrl.current.database' placeholder="" required></input>
		</div>
	</div>

	<div class="gf-form-inline">
		<div class="gf-form max-width-15">
			<span class="gf-form-label width-7">用户</span>
			<input type="text" class="gf-form-input" ng-model='ctrl.current.user' placeholder=""></input>
		</div>
		<div class="gf-form max-width-15">
			<span class="gf-form-label width-7">密码</span>
			<input type="password" class="gf-form-input" ng-model='ctrl.current.password' placeholder=""></input>
		</div>
	</div>
</div>


<div class="gf-form-group">
	<div class="grafana-info-box">
		<h5>数据库访问</h5>
		<p>
      为此数据源设置数据库使其不会拒绝访问其他数据库。InfluxDB 查询语法允许在查询中切换数据库。 例如：
			<code>SHOW MEASUREMENTS ON _internal</code> or <code>SELECT * FROM "_internal".."database" LIMIT 10</code>
			<br/><br/>
      要支持数据隔离和安全性，请确保在 InfluxDB 中配置适当的权限。
		</p>
	</div>
</div>

<div class="gf-form-group">
	<div class="gf-form-inline">
		<div class="gf-form">
			<span class="gf-form-label">最短时间间隔</span>
			<input type="text" class="gf-form-input width-6" ng-model="ctrl.current.jsonData.timeInterval" spellcheck='false' placeholder="10s"></input>
			<info-popover mode="right-absolute">
        按时间间隔自动分组的下限。建议设置为写入频率，例如，如果数据每分钟写入一次，就可以设为 <code>1m</code>。
			</info-popover>
		</div>
	</div>
</div>
